<?php if ($this->pageCount): ?>
<div class="paginationControl">
总数：<?php echo $this->totalItemCount ?>&nbsp;
页码：<?php echo $this->current ?>/<?php echo $this->pageCount ?>
&nbsp;&nbsp;
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  <a href="<?= $this->url(array_merge(array('page' => $this->first), (array)$this->params)); ?>">
    首页
  </a> |
  <a href="<?= $this->url(array_merge(array('page' => $this->previous), (array)$this->params)); ?>">
    上一页
  </a> |
<?php else: ?>
  <span class="disabled">首页</span> |
  <span class="disabled">上一页</span> |
<?php endif; ?>

<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <a href="<?php echo $this->url(array_merge(array('page' => $page), (array)$this->params)); ?>">
        <?php echo $page; ?>
    </a> |
  <?php else: ?>
    <b><font color="red"><?php echo $page; ?></font></b> |
  <?php endif; ?>
<?php endforeach; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <a href="<?=$this->url(array_merge(array('page' => $this->next), (array)$this->params));?>">
    下一页
  </a> |
  <a href="<?= $this->url(array_merge(array('page' => $this->last), (array)$this->params)); ?>">
    尾页
  </a>
<?php else: ?>
  <span class="disabled">下一页</span> |
  <span class="disabled">尾页</span>
<?php endif; ?>
</div>
<?php endif; ?>